package com.yuexin.project.store.outbound.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuexin.framework.aspectj.lang.annotation.Excel;
import com.yuexin.framework.web.domain.BaseEntity;
import com.yuexin.project.store.goods.domain.GoodsList;

import java.util.Date;

/**
 * 出库单表 store_outbound
 * 
 * @author yuexin
 * @date 2018-11-30
 */
public class Outbound extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 出库单ID */
	private Integer outboundId;
	/** 出库日期 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd")
	private Date outboundDate;
	@Excel(name = "出库日期")
	private String outboundDateExcel;
	/** 物品名称 */
	private Integer goodsId;
	/** 物品名称 */
	@Excel(name = "物品名称")
	private String goodsName;
	/** 数量 */
	@Excel(name = "数量")
	private Integer outboundNumber;
	/** 单价 */
	@Excel(name = "单价")
	private Double outboundPrice;
	/** 金额 */
	@Excel(name = "金额")
	private Double outboundMoney;
	/** 备注 */
	@Excel(name = "备注")
	private String remark;
	
	private GoodsList goodsList;

	public void setOutboundId(Integer outboundId) 
	{
		this.outboundId = outboundId;
	}

	public Integer getOutboundId() 
	{
		return outboundId;
	}
	public void setOutboundDate(Date outboundDate) 
	{
		this.outboundDate = outboundDate;
	}

	public Date getOutboundDate() 
	{
		return outboundDate;
	}
	public void setGoodsId(Integer goodsId) 
	{
		this.goodsId = goodsId;
	}

	public Integer getGoodsId() 
	{
		return goodsId;
	}
	public void setOutboundNumber(Integer outboundNumber) 
	{
		this.outboundNumber = outboundNumber;
	}

	public String getOutboundDateExcel() {
		return outboundDateExcel;
	}

	public void setOutboundDateExcel(String outboundDateExcel) {
		this.outboundDateExcel = outboundDateExcel;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getOutboundNumber() 
	{
		return outboundNumber;
	}
	public void setOutboundPrice(Double outboundPrice) 
	{
		this.outboundPrice = outboundPrice;
	}

	public Double getOutboundPrice() 
	{
		return outboundPrice;
	}
	public void setOutboundMoney(Double outboundMoney) 
	{
		this.outboundMoney = outboundMoney;
	}

	public Double getOutboundMoney() 
	{
		return outboundMoney;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	
    public GoodsList getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(GoodsList goodsList) {
		this.goodsList = goodsList;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("outboundId", getOutboundId())
            .append("outboundDate", getOutboundDate())
            .append("goodsId", getGoodsId())
            .append("outboundNumber", getOutboundNumber())
            .append("outboundPrice", getOutboundPrice())
            .append("outboundMoney", getOutboundMoney())
            .append("remark", getRemark())
            .toString();
    }
}
